<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<style>
.pageerCont {
	padding-top: 10px;
}

div.yk-pager {
	text-align: right;
	font-size:12px;
}

div.yk-pager a {
	font-size:10px;
	color: #036CB4;
	margin-right: 2px;
	padding: 2px 5px;
	text-decoration: none;
	border: 1px solid #929196;
}

div.yk-pager a:hover {
	padding: 2px 5px;
	margin-right: 2px;
	background-color: #ccdaf3;
	border: #a0a0a0 1px solid;
}

div.yk-pager a:active {
	margin-right: 2px;
	background-color: #ccdaf3;
	border: #a0a0a0 1px solid;
}

div.yk-pager span.current {
	color: #FFFFFF;
	padding: 2px 5px;
	margin-right: 2px;
	background-color: #6390cb;
	border: 1px solid #3d68a0
}

div.yk-pager span.disabled {
	color: #ccc;
	margin-right: 2px;
	border: 1px solid #f3f3f3;

}

div.yk-pager .goInput {
	color: #000000;
	height: 18px;
	margin: 0 5px;
	text-align: center;
	vertical-align: top;
	width: 30px;
}

</style>
<div class="yk-pager">
	<a href="javascript:gotoPage(1);">首页</a>
	<a href="javascript:gotoPage(${page.pageNo-1});">◀上一页</a>
	<a href="javascript:gotoPage(${page.pageNo+1});">下一页▶</a>
	<a href="javascript:gotoPage(${page.totalPageCount });">末页</a>
	总${page.totalSize}条，第${page.pageNo}/${page.totalPageCount}页，到第
	<input size=2 name="goInput" id="goInput" value='${page.pageNo}' />页,
	<input type="button" value=" Go " onclick="javascript:gotoPageByInput();" />
</div>
<script type="text/javascript"> 
	var totalPageNo = '${page.totalPageCount}';
	if (totalPageNo == '') totalPageNo = 1;
	function gotoPage(pageNo) {
		//alert(pageNo);
		if (pageNo == null || pageNo == "") return;
		totalPageNo=parseInt(totalPageNo);
		pageNo=parseInt(pageNo);
		if (isNaN(pageNo)) return;
		if (pageNo < 1) pageNo = 1;
		else if (pageNo > totalPageNo) return;
		var thisForm = document.forms[0];
		//thisForm.pageNo.value = pageNo;
		thisForm.pageNo.value=pageNo;
		thisForm.submit();
	}
	function gotoPageByInput(){
		var pageNo=document.getElementById('goInput').value;
		gotoPage(pageNo);
	}
</script>